import request from '@/utils/request'

// 查询药品库存管理列表
export function listDrugStock(query) {
  return request({
    url: '/manage/drugStock/list',
    method: 'get',
    params: query
  })
}

// 查询药品库存管理详细
export function getDrugStock(stockId) {
  return request({
    url: '/manage/drugStock/' + stockId,
    method: 'get'
  })
}

// 新增药品库存管理
export function addDrugStock(data) {
  return request({
    url: '/manage/drugStock',
    method: 'post',
    data: data
  })
}

// 修改药品库存管理
export function updateDrugStock(data) {
  return request({
    url: '/manage/drugStock',
    method: 'put',
    data: data
  })
}

// 删除药品库存管理
export function delDrugStock(stockId) {
  return request({
    url: '/manage/drugStock/' + stockId,
    method: 'delete'
  })
}
